package com.kyzh.core.activities

import android.os.Bundle
import android.text.Html
import com.gushenge.core.base.activity.BaseActivity
import com.gushenge.core.beans.Notice
import com.kyzh.core.R
import kotlinx.android.synthetic.main.activity_noticedetail.*

class NoticeDetailActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_noticedetail)
        val data = intent.getSerializableExtra("data") as Notice

        tvNoticeTitle.text = data.name
        tvTime.text = data.time
        val replace = data.content.replace("\r", "<br>")
        tvContent.text = Html.fromHtml(replace)
    }
}